HAL IWDG constants migration ¶
This section provides information about the HAL IWDG constants migration.
Related Concept: Define statements and enumerations redirected to LL equivalents
HAL IWDG prescaler constants ¶
In
HAL2, these constants have been removed and is keep it in LL file.
|
HAL1 |
HAL2 |
|---|---|
#define IWDG_PRESCALER_4
#define IWDG_PRESCALER_8
#define IWDG_PRESCALER_16
#define IWDG_PRESCALER_32
#define IWDG_PRESCALER_64
#define IWDG_PRESCALER_128
#define IWDG_PRESCALER_256
#define IWDG_PRESCALER_512
#define IWDG_PRESCALER_1024
|
These defines have been removed. In
For direct register-level control of the IWDG, users should utilize the LL driver rather than the HAL. |
HAL IWDG status constants ¶
|
HAL1 |
HAL2 |
|---|---|
#define IWDG_STATUS_DISABLE
#define IWDG_STATUS_ENABLE
|
Removed; In
For register-level control of the IWDG, the LL driver (e.g.,
|
HAL IWDG window status constants ¶
|
HAL1 |
HAL2 |
|---|---|
#define IWDG_WINDOW_DISABLE
|
Relocated to the .c file as it is not intended for user access. |
HAL IWDG early wakeup interrupt status constants ¶
|
HAL1 |
HAL2 |
|---|---|
#define IWDG_EWI_DISABLE
|
Removed; When early wakeup is not required, the user should set the
|